from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLU import *

def main():
    glutInit()
    glutInitDisplayMode(GLUT_RGBA)
    glutInitWindowSize(500, 500)
    glutCreateWindow(b"Title_hello_OpenGL_Window")

    glutDisplayFunc(draw)

    glutMainLoop()

def draw():
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
    glLoadIdentity()
    # 在这里添加你的绘图代码
    glutSwapBuffers()

if __name__ == "__main__":
    main()
